﻿namespace EyeOpen.Data
{
	using System.Data;

	public static class DataRowViewExtensions
	{
		public static string Field(this DataRowView dataRowView, string fieldName)
		{
			return dataRowView.Field<string>(fieldName);
		}

		public static T Field<T>(this DataRowView dataRowView, string fieldName)
		{
			return (T)dataRowView[fieldName];
		}
	}
}